package com.itheima.health.dao;

import com.itheima.health.pojo.UserRole;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;
import java.util.Set;

public interface UserRoleMapper extends Mapper<UserRole> {
    /**
     * @Author: 位帅帅
     * @Date: 17:16 2021/1/11
     * @Params: [id]
     * @RerurnType: java.util.List<java.lang.Integer>
     * @Description: 根据用户id查询角色id
    */
    Set<Integer> findRoleIdsByUserId(@Param("id") Integer id);
}
